/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.wlhy.service;


import com.msk.common.core.domain.model.LoginUser;
import com.msk.wlhy.domain.LogisticsMsgWaybill;
import com.msk.wlhy.mapper.LogisticsMsgWaybillDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author llh
 * @date 2023/6/16
 * @return 
 * @description       
 */
@Service
@Transactional(readOnly = true)
public class LogisticsMsgWaybillService{

    @Autowired
    private LogisticsMsgWaybillDao logisticsMsgWaybillDao;

    //货主信用评价
    public List<Map<String,Object>> findTransportListByMemberId(LogisticsMsgWaybill logisticsMsgWaybill, LoginUser user) {
        if (user != null && user.getLoginObject() != null && "2".equalsIgnoreCase(user.getLoginObject())) {
            logisticsMsgWaybill.setAttstr01(user.getLoginId());
            logisticsMsgWaybill.setAttstr05("master");
        }
        return logisticsMsgWaybillDao.findTransportListByMemberId(logisticsMsgWaybill);
    }

}